/* 
 * File:   noguiInterface.h
 * Author: cow
 *
 * Created on April 5, 2011, 11:03 PM
 */

#ifndef _NOGUIINTERFACE_H
#define	_NOGUIINTERFACE_H

//includes-----------------------------
#include "unit.h"
#include "players.h"
#include <string>
#include <iostream>
#include <ncurses.h>
using namespace std;
//defines------------------------------
namespace noguimap{
enum menuoption{
    nocmd = 0,
    movecmd,
    shoot,
    split,
    join,
    transfer,
	face,
    endturn,
    exit
};
};
//prototypes---------------------------
namespace noguimap{
int controll();
int map();
menuoption menu();
menuoption fleetmenu();
void initializePlayers();
int selftest();

void initializeNcurses();
void breakNcurses();

void handleMove();
void handleShoot();
void handleSplit();
void handleJoin();
void handleTransfer();
void handleTransfer(int, int ,int ,int);
void handleFaceing();
};
//definitions--------------------------
#endif	/* _NOGUIINTERFACE_H */

